package graph_interface;

import java.sql.*;
public class Main {
	public static void main(String[] args)
	{
		Connection conn=DBConnection.getConnection();
		try
		{
			Statement stmt=conn.createStatement();
			ResultSet rs=stmt.executeQuery("select * from athletes");
			while(rs.next())
			{
				int id=rs.getInt(1);
				String name=rs.getString(2);
				String sex=rs.getString(3);
				System.out.println(id+" "+name+" "+sex);
			}
		}
		catch(SQLException e)
		{
			e.printStackTrace();
		}
	}
}
